from kubeflow.fairing.config import Config
from kubeflow.fairing.constants import constants
import logging

logging.basicConfig(
    level=constants.FAIRING_LOG_LEVEL,
    format=constants.FAIRING_LOG_FORMAT,
    datefmt=constants.FAIRING_LOG_DATEFMT,
)
class myBuildConfig(Config):
    def run(self):
        """ run the pipeline for job"""
        preprocessor = self.get_preprocessor()
        logging.info("Using preprocessor: %s", preprocessor)
        builder = self.get_builder(preprocessor)
        logging.info("Using builder: %s", builder)
        deployer = self.get_deployer()
        logging.info("Using deployer: %s", deployer)

        builder.build()
#         pod_spec = builder.generate_pod_spec()
#         deployer.deploy(pod_spec)

